//
//  XPContactHeaderView.m
//  QQ
//
//  Created by nhope on 2017/5/2.
//  Copyright © 2017年 xiaopin. All rights reserved.
//

#import "XPContactHeaderView.h"
#import "XPButton.h"
#import "XPContactGroupModel.h"

@interface XPContactHeaderView ()

@property (weak) IBOutlet NSButton *arrowButton;
@property (weak) IBOutlet NSTextField *nameLabel;
@property (weak) IBOutlet NSTextField *detailLabel;
@property (weak) IBOutlet XPButton *moreButton;

@end

@implementation XPContactHeaderView

#pragma mark - Lifecycle

- (void)prepareForReuse {
    [super prepareForReuse];
    self.moreButton.hidden = YES;
}

#pragma mark - Public

- (void)showForGroupModel:(XPContactGroupModel *)group {
    self.nameLabel.stringValue = group.name;
    self.detailLabel.stringValue = [NSString stringWithFormat:@"%ld/%ld", group.onlinePeopleNumber,group.peopleNumber];
}

@end
